package com.chenbei.erp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenbei.common.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Schema(description = "仓库订单详情")
@Data
@TableName("erp_inventory_order_detail")
public class InventoryOrderDetail extends BaseEntity {

    @Schema(description = "主角ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "订单ID")
    @TableField("order_id")
    private Long orderId;

    @Schema(description = "产品ID")
    @TableField("product_id")
    private Long productId;

    @Schema(description = "产品数量")
    @TableField("product_number")
    private Integer productNumber;

    @Schema(description = "单价")
    @TableField("unit_cost")
    private BigDecimal unitCost;

    @Schema(description = "出库仓位ID")
    @TableField("out_storage_location_id")
    private Long outStorageLocationId;

    @Schema(description = "入库仓位ID")
    @TableField("in_storage_location_id")
    private Long inStorageLocationId;
}
